<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of welcome
 *
 * @author Obi
 */
class Main extends MY_Controller {

    function __construct() {
        parent::__construct();
        $this->minformasi = new M_informasi();
    }

    function index($id=NULL) {

        $dt = $this->minformasi->get();

        $data['id_informasi'] = $dt->id_informasi;
        $data['nama_informasi'] = $dt->nama_informasi;
        $data['isi_informasi'] = $dt->isi_informasi;
        $data['status'] = $dt->status;

        $data['title'] = $dt->nama_informasi;

       

        $data['menu'] = array(
            $this->load->view('parsing/client/menu_right_informasi', '', true),
            $this->load->view('parsing/client/menu_right_db', '', true),
        );

        $data['isi'] = 'isi_informasi';
        $this->load->view('template_client', $data);
    }
    
        function set_info($id=NULL) {

        $dt = $this->minformasi->where("id_informasi = '$id'")->get();


        $data['isi_informasi'] = $dt->isi_informasi;
        $data['title'] = $dt->nama_informasi;

      

        $data['menu'] = array(
            $this->load->view('parsing/client/menu_right_informasi', '', true),
            $this->load->view('parsing/client/menu_right_db', '', true),
        );

        $data['isi'] = 'isi_informasi';
        $this->load->view('template_client', $data);
    }

}

?>
